// src/pages/Home/ContentDistribution/index.js
import React from 'react';
import { Tabs } from 'antd';
import PublishTaskForm from '@/components/ContentDistribution/PublishTaskForm';
import PublishTaskList from '@/components/ContentDistribution/PublishTaskList';
import PublishedContentView from '@/components/ContentDistribution/PublishedContentView';

const ContentDistribution = () => {
  const items = [
    {
      key: 'create',
      label: '创建发布任务',
      children: <PublishTaskForm />,
    },
    {
      key: 'manage',
      label: '发布任务管理',
      children: <PublishTaskList />,
    },
    {
      key: 'published',
      label: '已发布内容',
      children: <PublishedContentView />,
    },
  ];

  return (
    <div style={{ padding: '24px' }}>
      <Tabs defaultActiveKey="create" items={items} />
    </div>
  );
};

export default ContentDistribution;
